<?php
$conn = ftp_connect("xxxx") or die("Could not connect");
ftp_login($conn,"user","pass");

  //var_dump(ftp_rawlist($conn,$_GET['d']));
  echo ftp_get($conn,$_GET['d'],"/tmp/".$_GET['d'],FTP_ASCII);

ftp_close($conn);
?>
